
import { stringify } from 'qs';
import request from '../utils/request';

export async function listMsg(params) {
  return request(`/api/web/msg/listMsg?${stringify(params)}`);
}

export async function listMsgHis(params) {
  return request(`/api/web/msg/listMsgHis?${stringify(params)}`);
}

export async function updateMsgStatus(params) {
  return request(`/api/web/msg/updateMsgStatus?${stringify(params)}`);
}
export async function updateMsgStatusByTime(params) {
  return request(`/api/web/msg/updateMsgStatusByTime?${stringify(params)}`);
}
export async function getNewMsgCount(params) {
  return request(`/api/web/msg/getNewMsgCount?${stringify(params)}`);
}
export async function showMoreNewMessage(params) {
  return request(`/api/web/msg/listMoreMsg?${stringify(params)}`);
}
export async function updateSeekHelpInfoPushStatus(params) {
  return request(`/api/web/seekHelpInfo/updateSeekHelpInfoPushStatus?${stringify(params)}`);
}
export async function replyMsg(params) {
  return request(`/api/web/msg/replyMsg?${stringify(params)}`,{method:'POST'});
}

export async function delMsg(params) {
  return request(`/api/web/msg/delMsg?${stringify(params)}`);
}
